package JDBC_Test.book.Model;

import java.util.Date;

public class BorrowRecordModel {

	private String cardId;
	private String bookId;
//	private Date startDate;
//	private Date endDate;
	private int state;// 记录的状态，0表示借，1表示还

	
	
	@Override
	public String toString() {
		if(this.getState()==0) {
			return "BorrowRecordModel [cardId=" + cardId + ", bookId=" + bookId + ", state=" + "借书记录" + "]";
		}
		else {
			return "BorrowRecordModel [cardId=" + cardId + ", bookId=" + bookId + ", state=" + "还书记录" + "]";
		}
		
	}

	public BorrowRecordModel() {
		super();
	}

	public BorrowRecordModel(String cardId, String bookId, int state) {
		super();
		this.cardId = cardId;
		this.bookId = bookId;
		this.state = state;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
